package com.example.demo2.mapper;

import com.example.demo2.entity.UploadedData;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UploadedDataMapper {
    void insertUploadedDataBatch(List<UploadedData> dataList);
    void insertUploadedData(UploadedData data);

    List<UploadedData> findByUploadName(@Param("uploadName") String uploadName, @Param("offset") int offset, @Param("size") int size);
    int countByUploadName(@Param("uploadName") String uploadName);
    List<Map<String, String>> findAllUploadNames();
    List<UploadedData> findByNameBatch(@Param("uploadName") String uploadName, @Param("offset") int offset, @Param("batchSize") int batchSize);
}